package org.example.fboot.service;

import org.example.fboot.dto.User;
import org.example.fboot.result.Result;
import org.springframework.security.core.Authentication;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

import java.util.concurrent.Callable;
import java.util.function.Function;

public interface AuthService {

    Mono<Result<String>> login(Function<Authentication,String> fun, User user);

    Mono<Result<String>> registerUser(Function<Authentication,String> fun, User user);
}
